Relating Graph and Term Rewriting via B

نویسنده

  • Zena M. Ariola
چکیده

Dealing properly with sharing is important for expressing some of the common compiler optimizations, such as common subex-pressions elimination, lifting of free expressions and removal of invariants from a loop, as source-to-source transformations. Graph rewriting is a suitable vehicle to accommodate these concerns. In 4] we have presented a term model for graph rewriting systems (GRSs) without interfering rules, and shown the partial correctness of the aforementioned optimizations. In this paper we deene a diierent model for GRSs, which allows us to prove total correctness of those optimizations. Diierently from 4] we will discard sharing from our observations and introduce more restrictions on the rules. We will introduce the notion of BB ohm tree for GRSs, and show that in a system without interfering and non-left linear rules (orthogonal GRSs), BB ohm tree equivalence deenes a congruence. Total correctness then follows in a straightforward way from showing that if a program M contains less sharing than a program N, then both M and N have the same BB ohm tree. We will also show that orthogonal GRSs are a correct implementation of orthogonal TRSs. The basic idea of the proof is to show that the behavior of a graph can be deduced from its nite approximations, that is, graph rewriting is a continuous operation. Our approach diiers from that of other researchers 6, 9], which is based on innnite rewriting.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Smaran: A Congruence-Closure Based System for Equational Computations

p. 1 Redundancy Criteria for Constrained Completion p. 2 Bi-rewriting, a Term Rewriting Technique for Monotonic Order Relations p. 17 A Case Study of Completion Modulo Distributivity and Abelian Groups p. 32 A Semantic Approach to Order-Sorted Rewriting p. 47 Distributing Equational Theorem Proving p. 62 On the Correctness of a Distributed Memory Grobner Basis Algorithm p. 77 Improving Transfor...

متن کامل

Rewriting on cyclic structures ?

We present a categorical formulation of the rewriting of possibly cyclic term graphs, and the proof that this presentation is equivalent to the well-accepted operational deenition proposed in 3]|but for the case of circular redexes, for which we propose (and justify formally) a diierent treatment. The categorical framework, based on suitable 2-categories, allows to model also automatic garbage ...

متن کامل

Modes of Convergence for Term Graph Rewriting

Term graph rewriting provides a simple mechanism to finitely represent restricted forms of infinitary term rewriting. The correspondence between infinitary term rewriting and term graph rewriting has been studied to some extent. However, this endeavour is impaired by the lack of an appropriate counterpart of infinitary rewriting on the side of term graphs. We aim to fill this gap by devising tw...

متن کامل

Axiomatic Sharing-via-Labelling

A judicious use of labelled terms makes it possible to bring together the simplicity of term rewriting and the sharing power of graph rewriting: this has been known for twenty years in the particular case of orthogonal first-order systems. The present paper introduces a concise and easily usable axiomatic presentation of sharing-via-labelling techniques that applies to higher-order term rewriti...

متن کامل

Convergence in Infinitary Term Graph Rewriting Systems is Simple

Term graph rewriting provides a formalism for implementing term rewriting in an efficient manner by avoiding duplication. Infinitary term rewriting has been introduced to study infinite term reduction sequences. Such infinite reductions can be used to model non-strict evaluation. In this paper, we unify term graph rewriting and infinitary term rewriting thereby addressing both components of laz...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993